a11y: Allow unsetting the relations using NULL
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 27 Jul 2020 12:53:05 +0000 (13:53 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 27 Jul 2020 13:26:19 +0000 (14:26 +0100)
commit05d9e0c1c8125742e074ba415269adeaa7ea03e3
tree1bfe739748cce24a99f0602b97a087f7f6f8f1ff
parentb7be6ee00dbca7cd73cfd95972b8b9919dd263c1
a11y: Allow unsetting the relations using NULL

Accessible values storing references and reference lists can be unset by
using NULL to mean "undefined"; since we cannot return the NULL value,
we need to intercept it when collecting a value, and replace it with an
undefined GtkAccessibleValue, which is also the value used as the
default for GtkAccessibleRelation values that store a reference or a
reference list.

Fixes: #2955
gtk/gtkaccessiblevalue.c